package com.jss.jssmybatisplus.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @Author Shuaishuai.Ji
 * @Date 2022/8/22 17:25
 * @Version 1.0
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RegisterChannelEnum implements IEnum<Integer> {
    OWN_CHANNEL(1,"自有渠道"),
    WECHAT(2,"微信"),
    ZHI_FU_BAO(3,"支付宝");

    private Integer code;
    private String name;

    RegisterChannelEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    public String getName() {
        return name;
    }
}
